package ${domain}.module.wsys.req;

import org.hibernate.validator.constraints.Length;
import ${domain}.frame.base.BaseRequest;
import ${domain}.frame.validation.Select;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * LogerrCreateRequest - 故障日志新增
 *
 * @author wangbing
 * @version 0.0.1
 * @since 2020-07-06
 */
public class LogerrCreateRequest extends BaseRequest {

    /**
     * 日志类型.
     * 系统错误:系统错误
     * 任务错误:任务错误
     * 业务错误:业务错误
     */
    @NotNull(message = "[logType]日志类型不能为NULL")
    @Select({"系统错误", "任务错误", "业务错误"})
    private String logType;

    /**
     * 任务标题.
     */
    @NotBlank(message = "[logTitle]任务标题不能为空")
    @Length(min = 0, max = 50, message = "[logTitle]任务标题长度不合法(0-50)")
    private String logTitle;

    /**
     * 日志描述.
     */
    @Length(min = 0, max = 500, message = "[logNote]日志描述长度不合法(0-500)")
    private String logNote;

    /**
     * 日志状态.
     * 0:待处理
     * 1:处理中
     * 2:已处理
     */
    @NotNull(message = "[logState]日志状态不能为NULL")
    @Select({"0", "1", "2"})
    private String logState;

    public String getLogType() {
        return this.logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public String getLogTitle() {
        return this.logTitle;
    }

    public void setLogTitle(String logTitle) {
        this.logTitle = logTitle;
    }

    public String getLogNote() {
        return this.logNote;
    }

    public void setLogNote(String logNote) {
        this.logNote = logNote;
    }

    public String getLogState() {
        return this.logState;
    }

    public void setLogState(String logState) {
        this.logState = logState;
    }
}
